package com.zyf.chapter01.principle.SOLID.LSP;

import com.zyf.chapter01.principle.SOLID.LSP.utils.Request;
import com.zyf.chapter01.principle.SOLID.LSP.utils.Response;
import com.zyf.chapter01.principle.SOLID.LSP.utils.HttpClient;

/**
 * 网络传输类
 * @author yifeng
 */
public class Transporter {
    private HttpClient httpClient;

    public Transporter(HttpClient httpClient) {
        this.httpClient = httpClient;
    }

    public Response sendRequest(Request request) {
        // ..use httpClient to send request
        return new Response();
    }
}


